import Vue from 'vue'
import Vuex from 'vuex'
import actions from 'store/actions'
import mutations from 'store/mutations'

Vue.use(Vuex)

const state = {
  token: null, // 凭证
  user: null,
  is_refresh: false,
  tabBar: {
    'User': [{
      index: 0,
      iconPath: "static/new-create.png",
      selectedIconPath: "static/new-create-o.png",
      text: "新建"
    }],
    'Administrator': [{
      index: 0,
      iconPath: "static/home.png",
      selectedIconPath: "static/home-o.png",
      text: "专报"
    }]
  }
}

export default new Vuex.Store({
  state,
  actions,
  mutations
})
